package com.zenith.article.po.domain;

import com.zenith.common.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import io.swagger.v3.oas.annotations.media.Schema;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(name = "多媒体资源实体", description = "多媒体资源实体")
public class ArtMedia extends BaseEntity {
    
    @Schema(description = "文章ID")
    private Long articleId;
    
    @Schema(description = "原始文件名")
    private String fileName;
    
    @Schema(description = "文件URL")
    private String fileUrl;
    
    @Schema(description = "文件大小（字节）")
    private Long fileSize;
    
    @Schema(description = "MIME类型")
    private String mimeType;
    
    @Schema(description = "图片宽度（像素）")
    private Integer width;
    
    @Schema(description = "图片高度（像素）")
    private Integer height;
    
    @Schema(description = "音视频时长（秒）")
    private Integer duration;
    
    @Schema(description = "用途：1-正文 2-封面 3-附件")
    private Integer usageType;
}